package com.topvision.camerasdk.video.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import com.topvision.commomsdk.uitl.AndroidUtils;


/**
 * Created by lucy on 2017/5/10.
 */

public class HomeClickReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        String action = intent.getAction();
        if (Intent.ACTION_CAMERA_BUTTON.equals(action)) {
            //拦截广播
            abortBroadcast();
            AndroidUtils.showTips(context,"语音控制不可用!");
        }
    }
}
